From: LLVM Packaging Team Date: Thu, 31 Oct 2019 19:36:09 +0000 (+0000) Subject: hurd-EIEIO-undef X-Git-Tag: archive/raspbian/1%10.0.0-1+rpi1^2~6^2~9 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8b3f963edf3738e7887c399fa628e10136510825;p=llvm-toolchain-10.git hurd-EIEIO-undef =================================================================== Gbp-Pq: Topic hurd Gbp-Pq: Name hurd-EIEIO-undef.diff --- diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp index da6576390..67a25ecc7 100644 --- a/llvm/utils/TableGen/CodeEmitterGen.cpp +++ b/llvm/utils/TableGen/CodeEmitterGen.cpp @@ -247,6 +247,9 @@ void CodeEmitterGen::run(raw_ostream &o) { ArrayRef NumberedInstructions = Target.getInstructionsByEnumValue(); + o << "// Undef for HURD\n"; + o << "#ifdef EIEIO\n#undef EIEIO\n#endif\n"; + // Emit function declaration o << "uint64_t " << Target.getName(); o << "MCCodeEmitter::getBinaryCodeForInstr(const MCInst &MI,\n"